package com.github.refresh;

import android.view.View;

public class PullDown {
    /*是否是下拉*/
    public boolean isPullDown;
    /*是否触摸*/
    public boolean isTouch;
    /*头view*/
    public View headerView;
    /*内容view*/
    public View contentView;
    /*下拉距离*/
    public int topDistance;
    /*下拉距离*/
    public int preTopDistance;
    /*回弹偏移量*/
    public int offsetY;
    /*头view高度*/
    public int headerViewHeight;
    /*状态*/
    public RefreshStatus status;
    /*是否自动刷新*/
    public boolean isAutoRefresh;

    public static void reset(PullDown pullDown){
        if (pullDown != null) {
            pullDown.isPullDown=false;
            pullDown.isTouch=false;
            pullDown.topDistance=0;
            pullDown.preTopDistance=0;
            pullDown.offsetY=0;
            pullDown.status=RefreshStatus.DEF;
            pullDown.isAutoRefresh=false;
        }
    }
}